#!/bin/bash
#This script will retrieve CPU information based on parameter prompted for user input
clear

echo -n "Type the CPU information type you wish to check (cache or speed), followed by [ENTER]: "

read param1

if [ "$param1" = "cache" ] ; then
	grep -e "$param1" /proc/cpuinfo
elif [ "$param1" = "speed" ] ; then
	grep -e "MHz" /proc/cpuinfo  
else 
 	echo Invalid input. Use only cache or speed as parameters.
fi
  


